﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Design;

namespace _0812367_0912581
{
    public class EnermyBullet: Bullet
    {
        public EnermyBullet(Texture2D aImage, Point aSheetsize, Vector2 thePosition, int theColOffset, float scale, int timePerFrame, Vector2 theSpeed, bool theVisible)
            : base(aImage, aSheetsize, thePosition, theColOffset, scale, timePerFrame, theSpeed, theVisible)
        {
        }

        public EnermyBullet(Bullet aBullet)
            : base(aBullet)
        {

        }
        
        public override void  UpdateVisible(GameTime gameTime)
        {
 	        //base.UpdateVisible();
            if (this.Position.X < 0)
            {
                Visible = false;
            }

        }

        public override void UpdatePosition(GameTime gameTime)
        {
            //base.UpdatePosition();
            Position -= this.Speed;
        }

    }
}
